package com.atguigu.spzx.manager;

import aspect.EnableLogAspect;
import com.atguigu.spzx.manager.auth.UserAuthProperties;
import com.atguigu.spzx.manager.properties.SpzxMinioProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@ComponentScan(basePackages = "com.atguigu")
@EnableConfigurationProperties(value = {UserAuthProperties.class, SpzxMinioProperties.class})
@EnableScheduling
@EnableLogAspect //manager工程如何应用到切面类 给切面类加上注解 import导入
@EnableAsync
public class ManagerApplication {
    public static void main(String[] args) {

            SpringApplication.run(ManagerApplication.class,args);

    }
}
